$(document).ready(function () {



    submit();

});






var submit = function () {
    $('.submit').unbind('click');
    $('.submit').click(function () {
        var conetnet = $(this).parent('#comment').find('.content').val();
        var  signSerialno = $(this).attr('signSerialno');
        var url = $(this).attr('url');


        $.post(url, {signSerialno: signSerialno, content: conetnet}, function (msg) {
            if (msg.status == 1) {
                $(".addmore").prepend(msg.html);
                toast.success('评论成功!');
                $('#content').val('');
              //  del();
               // comment();

            } else {
                toast.error(msg.msg);
            }
        }, 'json')
    });
}



